package org.example.study2;


import java.io.FileOutputStream;
import java.io.IOException;

public class OutputStreamWriter2 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fileOutputStream = new FileOutputStream("D:/temp/output2.txt");
        byte[] b = new byte[] {
                (byte)'a',(byte)'b'
        };
        fileOutputStream.write(b);
        fileOutputStream.flush();
        fileOutputStream.close();
    }
}
